<div id="popup" class="ui-roundedbox">
  <div class="ui-roundedbox-corner ui-roundedbox-tl">
    <div class="ui-roundedbox-corner ui-roundedbox-tr">
      <div class="ui-roundedbox-corner ui-roundedbox-bl">
        <div class="ui-roundedbox-corner ui-roundedbox-br">
          <div class="ui-roundedbox-content">
            <div id="sharer">
            <% unless request.post? -%>
              <h2>Favorite to microblog_Microblog</h2>
              <form method="post" action="/sharer/index" class="nf"> 
                <p> 
                  <label class="label_input" for="title">Title</label> 
                  <input type="text" name="title" id="title" class="input_text" value="<%= params[:t] -%>" /> 
                </p> 
                <p> 
                  <label class="label_input" for="url">URL</label> 
                  <input type="text" name="url" id="url" class="input_text formdisabled" value="<%= params[:u] -%>" readonly="readonly" /> 
                </p> 
                <p> 
                  <label class="label_input" for="detail">Description</label> 
                  <textarea name="detail" id="detail" rows="3" cols="50" class="qs"><%= params[:d] -%></textarea> 
                </p> 
                <p class="act"> 
                  <input type="hidden" name="action" value="share.new" /> 
                  <input type="hidden" name="sharer" value="sharer" /> 
                  <input type="hidden" name="src" value="" /> 
                  <input type="submit" class="formbutton" value="Favorite" /> 
                  <input type="button" class="formbutton cancel" name="cancel" value="Cancel" onclick="self.close();return false;" /> 
                </p> 
              </form>
            <% else -%>
              <h2>Succeed!</h2>
              <p>Your link: "<a href="<%= params[:url] -%>"><%= params[:title] -%></a>" has been successfully favorited to Microblog.</p>
              <p>This windows will be automatically closed in several minutes. :)</p>
            <% end -%>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>